<extend name="Public/base"/>
<block name="nav">

    <ul class="nav nav-tabs" >


        <volist name="buildings" id="v">

            <li
            <if condition="$v[id] eq $building_id"> class="active"</if>
            ><a href="{:U('index',array('building_id'=>$v['id']))}">{$v.name}</a></li>
        </volist>


        <if condition="check_url('today_checkout',UID)">
        <li class="active"><a href="{:U('today_checkout')}">今日退房

                <span class="badge badge-danger">{$today_checkout_num}</span>


        </a></li>
            </if>


        <li class="pull-right nav-tabls-plus">


            <span class="label label-success arrowed">空房</span>
            <span class="label label-warning arrowed">未满</span>
            <span class="label label-danger arrowed">满房</span>
        </li>


    </ul>
    <div>

    </div>

</block>

<block name="body">

<form class="J_ajaxForm" action="{:U('listorders')}" method="post">
    <div class="table_list">
        <table class="table table-striped table-bordered table-hover table-responsive" >
            <thead>
            <tr>
                <th width="150">人员</th>
                <th width="100">电话</th>
                <th>劳动合同</th>
                <th >身份证号</th>
                <th>单位</th>
                <th>接待单位</th>
                <th width="100">入住时间</th>
                <th>离开时间</th>

            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr

                <switch name="vo.status" >
                    <case value="0"> class="success"</case>
                    <case value="1">class="active"</case>


                </switch>
                >
                    <td>
                        <switch name="vo.type" >
                            <case value="2"><span class="badge badge-danger">临时</span></case>
                            <case value="1"><span class="badge badge-success">长期</span></case>


                        </switch>

                        <switch name="vo.sex" >
                            <case value="男"><span class="badge badge-info">{$vo.sex}</span></case>
                            <case value="女"><span class="badge badge-warning">{$vo.sex}</span></case>


                        </switch>



                        {$vo.name}
                      </td>

                    <td>{$vo.tel}</td>
                    <td>{$vo.ldht}</td>
                    <td>{$vo.sfz}</td>
                    <td>{$vo.danwei}</td>
                    <td>{$vo.jiedaidanwei}</td>

                    <td>{$vo.checkin}</td>
                    <td>{$vo.checkout}</td>




                </tr>



            </volist>
            </tbody>

        </table>
    </div>
      <div class="pagination">{$Page}</div>

  </form>


</block>


<block name="script">

        </block>